package com.linkstec;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.log4j.Logger;

public class DateTest {

	static Logger log = Logger.getLogger(DateTest.class);
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS").format(new Date()));
		/*long minute = 3656010/1000/60;
		long second = 3656010/1000%60;
		long milliSecond = 3656010%1000;*/
		long minute = 10/1000/60;
		long second = 10/1000%60;
		long milliSecond = 10%1000;
		log.info(minute + "分钟" + second +"秒" + milliSecond + "毫秒");
	}

}
